<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * Description: 接口列表
 *
 * @author      Eden
 * @datetime    2016/11/24 13:27
 * @copyright   Beijing CmsTop Technology Co.,Ltd.
 */

$config['api'] = array(
    'params' => array('token', 'version', 'module', 'time', 'type', 'ip'), // TOKEN 表示生成的令牌
    'interface' => array(
        'start' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('common')
        ),
        'member' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('sms', 'regist', 'resetpw', 'rebind', 'findpw', 'check', 'edit', 'login', 'bind', 'logout', 'social', 'voucher')
        ),
        'upload' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('image', 'images')
        ),
        'order' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('add', 'add2', 'buy', 'edit', 'delete', 'delete2', 'lists', 'lists2', 'detail', 'detail2', 'sign', 'num', 'num2', 'express', 'confirm',
                'refundapply', 'more', 'refundview', 'postage', 'postage2', 'cancel', 'cancel2', 'comment')
        ),
        'address' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('add', 'delete', 'edit', 'lists')
        ),
        'bbs' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('post', 'bbslist', 'detail', 'commentlist', 'comment', 'likes', 'reply', 'adv')
        ),
        'index' => array(       // 首页
            'version' => array('v1' => 'v1.0'),
            'modules' => array('slide', 'lists', 'keyword', 'search')
        ),
        'base' => array(        // 基地接口
            'version' => array('v1' => 'v1.0'),
            'modules' => array('detail')
        ),
        'goods' => array(       // 商品接口
            'version' => array('v1' => 'v1.0'),
            'modules' => array('detail', 'collect', 'comment', 'collectlist', 'commentlist', 'detail2')
        ),
        'car' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('lists', 'do', 'add', 'delete', 'lists2')
        ),
        'purchaser' => array(
            'version' => array('v1' => 'v1.0'),
            'modules' => array('apply')
        )

    )
);
